<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<#include "/jspgou_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
</script>
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "shop.function.product"/> - <@s.m "product.function"/> - 属性</div>
	<form class="ropt">
	    <input type="submit" value="添加" onclick="this.form.action='v_add.do';"/>
	</form>
	<div class="clear"></div>
</div>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<@p.table value=list;poster,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${poster.id!}'/><#t/>
	</@p.column><#t/>
	<@p.column title="ID">${poster.id!}</@p.column><#t/>
	<@p.column code="图片"><img src="${uploadRoot}${poster.picUrl!}" style="width:100px;height:50px;background-color:#CCCCCC;border:1px solid #333"/></@p.column><#t/>
	<@p.column code="图片地址">${poster.picUrl!}</@p.column><#t/>
	<@p.column code="链接地址">${poster.interUrl!}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<a href="v_edit.do?id=${poster.id}&pageNo=${pageNo!}"><@s.m "global.edit"/></a> | <#rt/>
		<a href="o_delete.do?ids=${poster.id}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.delete"/>')) {return false;}"><@s.m "global.delete"/></a><#t/>
	</@p.column><#t/>
</@p.table>
<div><input type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div>
</form>
</body>
</html>